//
//  MQMessageTableViewController.swift
//  MQWeibo
//
//  Created by 毛强 on 15/12/27.
//  Copyright © 2015年 itheima. All rights reserved.
//

import UIKit

class MQMessageTableViewController: MQVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if userLogin == false{
            visitorView.setupInfo("visitordiscover_image_message", messageText: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            return
        }
        
        setupUI()
       
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.

    }
    private func setupUI(){
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "发现群", target: self, action: "findGroup")
    }
    
    @objc private func findGroup(){
        let vc = MQTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}
